﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.CMS263.BLL;
using Com.CMS263.Util;
using Com.CMS263.PO;

namespace Com.CMS263.Web.manage.TvStation
{
    public partial class tvStationList : System.Web.UI.Page
    {
        //电视台分页
        public  int pageTv = 1;
        int pagesizeTv = 10;
        public int countTv;

        public IList<TVstation> tvList = new List<TVstation>();
        TVstationBLL tvBll = new TVstationBLL();
        protected void Page_Load(object sender, EventArgs e)
        { 
            //电视台
            pageTv = Convert.ToInt32(Request.QueryString.Get("pageTv"));
            if (pageTv <= 0)
            {
                pageTv = 1;
            }
            tvList = tvBll.FindList(pageTv, pagesizeTv);
            countTv = tvBll.GetResultCount();

        }
        //电视台分页
        public string GetPagerTv()
        {
            return tvPage.GetNumPager(5,countTv, pagesizeTv, pageTv, "");
        }
    }
}
